MarkLogic Server 11.0 Product Documentation
DELETE /v1/config/query/(default|{name})

Summary

Remove the named (or default) query options from the App Server.

Response

Upon success, MarkLogic Server returns a 204 (Deleted) status.

Required Privileges

This operation requires the rest-admin role, or the following privileges:

http://marklogic.com/xdmp/privileges/rest-admin

http://marklogic.com/xdmp/privileges/rest-writer

http://marklogic.com/xdmp/privileges/rest-reader

Usage Notes

For more details, see Configuring Query Options in the REST Application Developer's Guide.

Example

$ curl --anyauth --user user:password -X DELETE -i \
  http://localhost:8000/v1/config/query/scene

==> MarkLogic Server removes the options installed under the
    name "scene". The response includes the following headers:

Server: MarkLogic
Content-Type: text/plain; charset=UTF-8
Content-Length: 31
Connection: close

HTTP/1.1 204 Deleted
Server: MarkLogic
Content-Length: 0
Connection: close
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy